package o;

class bmp {
    private static int ˋ = 0;
    private static final int ˎ = ((int) Math.ceil(1.0d / ˏ));
    private static double ˏ = 0.05d;
    private static double ॱ = 0.0d;

    bmp() {
    }

    static double ˋ(double d) {
        double d2 = 1.0d - ˏ;
        if (ˋ > ˎ) {
            ॱ = Math.exp((d2 * Math.log(ॱ)) + (ˏ * Math.log(d)));
        } else if (ˋ > 0) {
            d2 = (d2 * ((double) ˋ)) / (((double) ˋ) + 1.0d);
            ॱ = Math.exp((d2 * Math.log(ॱ)) + ((1.0d - d2) * Math.log(d)));
        } else {
            ॱ = d;
        }
        ˋ++;
        bmr.ॱ.ˎ("AverageCalculator", "receive value: " + ((int) d) + "  return value:" + ((int) ॱ));
        return ॱ;
    }

    static void ॱ() {
        ॱ = 0.0d;
        ˋ = 0;
    }
}
